package cn.mavor.day0910.Company;

public class Main {
    public static void main(String[] args) {
        Company company = new Company("科技解决方案有限公司", "科技街123号", "123-456-7890", "软件开发");

        // 招聘员工
        company.hireEmployee(new Employee("Alice", 28, "女", "开发人员", 50000, "E001"));
        company.hireEmployee(new Employee("Bob", 32, "男", "经理", 70000, "E002"));

        // 输出所有员工信息
        company.printEmployees();

        // 辞退员工
        company.fireEmployee("E001");

        // 获取公司员工人数
        System.out.println("公司员工人数: " + company.getNumberOfEmployees());

        // 获取公司薪水最高的员工
        Employee highestPaid = company.getHighestPaidEmployee();
        if (highestPaid != null) {
            System.out.println("薪水最高的员工: " + highestPaid.getName() + " - 薪水: " + highestPaid.getSalary());
        }
    }
}